package hello

import hello.filters.pre.SimpleFilter
import org.springframework.boot.Banner
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.cloud.netflix.zuul.EnableZuulProxy
import org.springframework.context.annotation.Bean

/**
 * Created by hunter on 17-11-12.
 */
@EnableZuulProxy
@SpringBootApplication
class GatewayApplication {
    static void main(String[] args) {
        def springApp = new SpringApplication(GatewayApplication.class)
        springApp.setBannerMode(Banner.Mode.OFF)
        springApp.run(args)
    }

    @Bean
    SimpleFilter simpleFilter(){
        return new SimpleFilter()
    }
}
